bsp_node *get_random_point(vector& v,float mindist)
Parameter | Type | Description |
---|---|---|
v | vector& | point |
mnidist | float | minimum distance |
Returns the bsp leaf the random point v is in.
This function is used to compute a random position inside the level that is at least mindist away from any wall. The random position will be stored in the v parameter.